<%@ page language="C#" autoeventwireup="true" inherits="Manage_OrgInfo_EmpList, App_Web_emplist.aspx.666789b0" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
		<LINK href="../css.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<script language="javascript" src="../../js/jslib.js" type="text/javascript"></script>
</head>
<body topmargin="0" leftmargin="0">
    <form id="form1" runat="server">
<table width="99%" align="center"  border="0" cellspacing="0" cellpadding="0" class="NormalText">
	   <tr>
	   <td height="40" class="HeadText">Employee Details</td>
	   </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" style="height: 24px">Employee ID:</td>
        <td style="height: 24px">
            <asp:TextBox ID="txtOrgEmpSid" runat="server" Width="160px"></asp:TextBox></td>
        <td width="150" style="height: 24px">Employee Name:</td>
        <td style="height: 24px" align="left">
            <asp:TextBox ID="txtEmpName" runat="server" Width="160px"></asp:TextBox></td>
        <td style="height: 24px">&nbsp;
            
            </td>
      </tr>
      <tr>
        <td style="height: 22px">Our Reference: </td>
        <td style="height: 22px">
            <asp:TextBox ID="txtSid" runat="server" Width="160px"></asp:TextBox></td>
        <td colspan="2" style="height: 22px" align="center"><asp:Button ID="bnSearch" runat="server" Text="Search" OnClick="bnSearch_Click" CssClass="submitBtn" /></td>
        <td style="height: 22px">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="15"></td>
  </tr>
  <tr>
    <td style="height: 16px"><table width="100%"  border="0" cellpadding="1" cellspacing="1" bgcolor="#cccccc">
      <tr bgcolor="#eeeeee">
        <td><strong>Our Reference</strong></td>
        <td height="22"><strong>Employee Name</strong></td>
        <td><strong>Your Ref</strong></td>
        <td><strong>Status</strong></td>
        <td><strong>Tax File Number</strong></td>
        <td><strong>Detail</strong></td>
        <td><strong>Delete</strong></td>
      </tr>
      <% 
        for (int i = 0; i < dtEmpList.Rows.Count; i++)
        {
            string OrgSid = dtEmpList.Rows[i]["OrgSid"].ToString();
            string EmpName = dtEmpList.Rows[i]["EmpName"].ToString();
            string OrgEmpSid = dtEmpList.Rows[i]["OrgEmpSid"].ToString();
            string Sid = dtEmpList.Rows[i]["Sid"].ToString();
            string IsValid = dtEmpList.Rows[i]["IsValid"].ToString();
        if (IsValid.Trim().Equals("1"))
            IsValid = "Active";
        else
            IsValid = "Terminated";
            string TaxFileNumber = dtEmpList.Rows[i]["TaxFileNumber"].ToString();
            string NextPayday = dtEmpList.Rows[i]["NextPayday"].ToString();
            string NetPayment = GetSumPaymentByEmp(Convert.ToInt32(Sid));    
      %>
      <tr bgcolor="#FFFFFF">
        <td><%=Sid%></td>
        <td height="22"><%=EmpName%></td>
        <td><%=OrgEmpSid%></td>
        <td><%=IsValid%></td>
        <td><%=TaxFileNumber%></td>
        <td><div align="left"><a href="EmpDetail.aspx?OrgSid=<%=OrgSid%>&Sid=<%=Sid%>">Detail</a></div></td>
        <td><div align="left"><a href="EmpDel.aspx?OrgSid=<%=OrgSid%>&EmpSid=<%=Sid%>" onClick="return confirm('Really delete it?');">Delete</a></div></td>
        
      </tr>
      <%} %>
    </table></td>
  </tr>
              <tr>
                <td height="30"><div align="center">
				<a href="#" onclick="history.go(-1);">Return</a>
				</div></td>
              </tr>
</table>
    </form>
</body>
</html>
